<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <title>4.bind</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>

<body>
    <script type="text/javascript">
        function demo() {
            console.log("first", this)
            return this
        }
        demo()
        //bing会返回一个新函数
        const x = demo.bind({
            a: 1,
            b: 2
        })
        console.log("x", x)
        console.log("x()", x())
    </script>
</body>

</html>